import request from '@/utils/request.js'

/**
 * 同城组局活动列表
 */
export function activiList(data) {
	return request.post('/anon/index/cityParty', data)
}

export function reservation(data) {
	return request.post('/city/party/reserve', data)
}
export function catDetail(partyId, userLng, userLat) {
	return request.get(`/anon/index/cityParty/${partyId}`, {
		userLng,
		userLat
	})
}

/**
 * 我的预约
 */
export function cityOrder(data) {
	return request.post('/city/party/order/list', data);
}
export function paymentOrder(data) {
	return request.post('/city/party/order/pay', data);
}
export function cancelOrder(orderId) {
	return request.post(`/order/cancel/${orderId}`, {});
}
export function isHoliday(date) {
	return request.get(`/anon/index/holiday/${date}`, {});
}
export function getClassify(date) {
	return request.get('/anon/index/cityParty/classify', {});
}

export function postPartyEvaluate(data) {
	return request.post('/city/party/order/evaluate', data)
}

/**
 * 获取微信ticket
 */
export function getSignatureApi(data) {
	return request.get(`/anon/auth/signature`, data)
}

